package com.permissionmanager.mapper;

import com.permissionmanager.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * role持久层
 *
 */
@Mapper
public interface RoleMapper {
    void add(Role role);

    void update(Role role);

    List<Role> findRole(Integer id, String roleName);

    void del(Integer id);

    List<Role> findPage(Integer skipNum, Integer pageSize, String roleName);

    Role findPermRoleId(Integer permRoleId);
}
